import { createPinia } from 'pinia'
import { markRaw } from 'vue'
import httpAxios from '@/api/http-axios.js';

const pinia = createPinia();

function apiPlugin(context) {
	return {$Http:markRaw(httpAxios)}//使用markRaw标记为非响应式。即httpAxios 对象不会转为响应式
}

pinia.use(apiPlugin);

export default pinia